<?php	
	include "init.php";
	
	$parm			= $_GET['parm'];
	$basefilename 	= basename($parm);
	//$basefilename	= "dBYvgo";
	
	mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database"); 
	@mysql_select_db("$DBName") or die("Unable to select database $DBName");	
	mysql_query("UPDATE $TSendSMS SET Status = 'sent' where FileName = '$basefilename'");	
	mysql_close();
?>